package org.neuedu.fly.mapper;

import org.apache.ibatis.annotations.Param;
import org.neuedu.fly.entity.Reply;

import java.util.List;

public interface ReplyMapper {
    boolean reply(@Param("postId") int postId,
                  @Param("replyContext") String replyContext,
                  @Param("userId") int userId);
    List<Reply> replyList();
    boolean delByPostId(int postId);
    boolean delByUserId(int userId);
    List<Reply> findReplyByUserId(int id);
    List<Reply> findReplyByPostId(int id);
    boolean delById(int id);
}
